#pragma once

#include "ImageInc.h"

typedef enum tag_image_format
{
	image_format_rgb24,
	image_format_bgr24,
	image_format_argb32,
	image_format_abgr32,
}image_format;


typedef struct tag_image_data
{
	uint_8 * data;
	uint_32 length;
	uint_32 width;
	uint_32 height;
	image_format format;
}image_data;



int_32 decode_image(image_data * imgdata, uint_8 * buffer, uint_32 size);